package com.study.action;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.alibaba.fastjson.JSON;
import com.study.bean.PictureBean;
import com.study.bean.scBean;
import com.study.service.impl.AddCarItemService;
import com.study.tools.MyTools;

/**
 * Servlet implementation class FingAction
 */
@WebServlet("/FingAction")
public class FingAction extends HttpServlet {
	private static final long serialVersionUID = 1L;

	/**
	 * 订单查询
	 */
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		System.out.println("fjdfsdjk");
		PictureBean adminB=MyTools.formToBean(request, PictureBean.class);
		 List<PictureBean> message1=MyTools.getInstance(AddCarItemService.class).getscInfoafford(adminB);	
			String aff01=JSON.toJSONString(message1);
			    System.out.println("aff01:"+aff01);
			  PrintWriter PW=response.getWriter();
			    PW.write(aff01);
			    PW.flush();
			    PW.close();
			
		}

}
